package com.baomihua.demo.enums

import com.baomidou.mybatisplus.enums.IEnum
import com.fasterxml.jackson.annotation.JsonValue
import java.io.Serializable

/**
 * 用户状态
 * @author nieqiurong 2017/12/7.
 */
enum class UserStatus(private val status:String, private val desc:String):IEnum {

    ENABLE("1","启用"),
    DISABLE("2","禁用");

    @JsonValue
    fun getDesc() = this.desc

    override fun getValue(): Serializable = this.status
}